import Vue from 'vue'
import Router from 'vue-router'
import home from '@/views/home/home'
import itIsLive from '@/views/home/itIsLive'
import series from '@/views/series/series'
import notice from '@/views/notice/notice'
import noticeInfo from '@/views/notice/noticeInfo'
import seriesInfo from '@/views/series/seriesInfo'
import examList from '@/views/exam/list'
import startExam from '@/views/exam/startExam'
import examResult from '@/views/exam/result'
import questionBank from '@/views/questionBank/questionBank'
import user from '@/views/user/user'
import paperAnalysisInfo from '@/views/user/paperAnalysisInfo'
import myTaskInfo from '@/views/user/myTaskInfo'
import myNote from '@/views/user/myNote'
import informationService from '@/views/informationService/informationService'
import learningCommunity from '@/views/learningCommunity/learningCommunity'
import certificate from '@/views/user/certificate'

import testWebsocket from '@/views/test/demo'

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: home
    },{
      path: '/series',
      name: 'series',
      component: series
    },{
      path: '/notice',
      name: 'notice',
      component: notice
    },{
      path: '/noticeInfo',
      name: 'noticeInfo',
      component: noticeInfo
    },{
      path: '/seriesInfo/:id',
      name: 'seriesInfo',
      component: seriesInfo
    },
    {
      path: '/questionBank',
      name: 'questionBank',
      component: questionBank
    },{
      path: '/startExam/:type/:id/:time',
      name: 'startExam',
      component: startExam
    },
    {
      path: '/examResult',
      name: 'examResult',
      component: examResult
    },
    {
      path: '/examList',
      name: 'examList',
      component: examList
    },{
      path: '/user',
      name: 'user',
      component: user
    },{
      path: '/paperAnalysisInfo/:id',
      name: 'paperAnalysisInfo',
      component: paperAnalysisInfo
    },{
      path: '/myTaskInfo',
      name: 'myTaskInfo',
      component: myTaskInfo
    },{
      path: '/myNote',
      name: 'myNote',
      component: myNote
    },{
      path: '/itIsLive/:id',
      name: 'itIsLive',
      component: itIsLive
    },{
      path: '/informationService',
      name: 'informationService',
      component: informationService
    },{
      path: '/learningCommunity',
      name: 'learningCommunity',
      component: learningCommunity
    },{
      path: '/certificate',
      name: 'certificate',
      component: certificate
    },
    {
      path: '/testWebsocket',
      name: 'testWebsocket',
      component: testWebsocket
    }
  ]
})
